package grape.house.rest.client.impl.housetag;

import grape.house.rest.client.housetag.HouseTagClient;
import grape.house.rest.housetag.mvc.HouseTagInnerController;
import grape.house.service.housetag.po.HouseTag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by yangwei
 * Created at 2020/9/28 16:37
 */
@Component
public class HouseTagClientImpl implements HouseTagClient {
    @Autowired
    private HouseTagInnerController housetagInnerController;
    @Override
    public String trans(String type, String key) {
        return housetagInnerController.trans(type,key);
    }

    @Override
    public boolean support(String type) {
        return housetagInnerController.support(type);
    }

    @Override
    public HouseTag getHouseTagById(String id) {
        return housetagInnerController.getHouseTagById(id);
    }

    @Override
    public HouseTag getHouseTagByCode(String code) {
        return housetagInnerController.getHouseTagByCode(code);
    }
}
